package com.onLineCar.dispatch.rpc;

import com.onLineCar.common.core.domain.Result;
import com.onLineCar.dispatch.rpc.dto.AMapAddressData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "onLineCar-aMap")
@Component
public interface MapRPC {

    @PostMapping("/amap/getAddressByLocation/{location}")
    Result<AMapAddressData> getAddressByLocation(@PathVariable(value = "location") String location);
}
